package com.qn.analyze.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.qn.common.base.model.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
/**
 * qingniu-cloud user source analysis
 *
 * @Author: TXG
 * @Date: 2024/6/11
 * @Version V0.0.2
 */
@Data
public class IpAddressRecord extends BaseEntity {
    @Schema(description = "ID")
    public Integer id;

    @Schema(description = "IP来源Ip2region、Cz88、Ipwhois")
    public Integer ipSource;

    @Schema(description = "IP4")
    public String ip4;

    @Schema(description =  "大洲")
    private String continent;

    @Schema(description =  "大洲代码")
    private String continentCode;

    @Schema(description =  "国家")
    @TableField(value = "country")
    private String country;

    @Schema(description =  "国家代码")
    private String countryCode;

    @Schema(description =  "地区")
    private String region;

    @Schema(description =  "地区代码")
    private String regionCode;

    @Schema(description =  "城市")
    private String city;

    @Schema(description =  "精度")
    private Double latitude;

    @Schema(description =  "维度")
    private Double longitude;

    @Schema(description =  "ANS代码")
    private Integer connectionAsn;

    @Schema(description =  "ANS名称")
    private String connectionOrg;

    @Schema(description =  "时区")
    private String timezoneId;

    @Schema(description =  "当前时间")
    private String timezoneCurrentTime;

    @Schema(description =  "匿名")
    private Integer securityAnonymous;

    @Schema(description =  "代理")
    private Integer securityProxy;

    @Schema(description =  "VPN")
    private Integer securityVpn;

    @Schema(description =  "匿名")
    private Integer securityTor;

    @Schema(description =  "机房")
    private Integer securityHosting;

    @Schema(description =  "创建时间")
    @TableField(value = "new_time")
    public Date newTime;
}
